package cn.izeno.wx

import org.ehcache.Cache

operator fun <K, V> Cache<K, V>.set(k: K, v: V?) {
  if (v != null)
    put(k, v)
  else
    remove(k)
}

